{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#comment_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        onfocusout : false,
        onkeyup    : false,
        rules : {
            goods_id : {
                required : true,
            },
            content : {
                required : true,
            }
        },
        messages : {
            goods_id : {
                required : '商品ID不可为空',
            },
            content  : {
                required   : '评论不可为空'
            }
        }
    });
    
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<div id="rightTop">
    <p>场景分类</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=updatecomment">管理</a></li>
        <li><span>添加</span></li>
    </ul>
</div>
<div class="info">
    <form method="post" enctype="multipart/form-data" id="comment_form">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">
                    商品ID:</th>
                <td class="paddingT15">
                    <input type="text" name="goods_id" value="">
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    评论时间:</th>
                <td class="paddingT15">
                    <input class="queryInput" type="text" id="add_time_from" value="" name="add_time_from" class="pick_date" />
                    至：
                    <input class="queryInput" type="text" id="add_time_to" value="" name="add_time_to" class="pick_date" />
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    评论:</th>
                <td class="paddingT15">
                    <textarea name="content" style="width: 600px;" id="content"></textarea>
                </td>
            </tr>

          <tr>
            <th></th>
            <td class="ptb20">
                <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                <input class="formbtn" type="reset" name="reset" value="{$lang.reset}" />            </td>
        </tr>
        </table>
    </form>
</div>
<div style="width: 1000px">
    {foreach from=$cates item=cate key=key}
        <span style="padding: 10px;white-space: nowrap;">{$cate}:{$key}</span>
    {/foreach}
</div>
{include file="footer.html"}
